import {
  Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, Input, EventEmitter,
  Output
} from '@angular/core';
import {FeedRespVO} from "@interface/index";





@Component({
  selector: 'feed-item',
  templateUrl: './feed-item.component.html',
  styleUrls: ['./feed-item.component.scss'],
  encapsulation: ViewEncapsulation.None
})
export class FeedItemComponent implements OnInit {
  @Input() feed;
  @Output() onclick = new EventEmitter();

  constructor() {
  }
  goToTargetPage(feed: FeedRespVO) {
    this.onclick.emit(feed);
  }

  ngOnInit() {
  }

}
